home *** CD-ROM | disk | FTP | other *** search
- Listing 1 -- The header <new>
-
- #ifndef _NEW_
- #define _NEW_
- #include <exception>
- // class xalloc
- class xalloc : public xruntime {
- protected:
- // virtual void do_raise();
- public:
- xalloc(const char * = 0, const char * = 0);
- virtual ~xalloc();
- };
- // function and object declarations
- fvoid_t *set_new_handler(fvoid_t *);
- void operator delete(void *);
- void operator delete[](void *);
- void *operator new(size_t);
- void *operator new[](size_t);
- void *operator new(size_t, void *);
- extern fvoid_t (*_New_hand);
- #endif
-